FROM python:3.8.4-alpine

RUN mkdir /app
WORKDIR /app

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories  && \
    apk add --update \
    ca-certificates \
    build-base \
    linux-headers \
    pcre-dev \
    git

RUN pip3 install --upgrade pip && \
    pip3 install jaeger_client && \
    rm -rf /var/cache/apk/*

ADD main.py /app

ENTRYPOINT ["python3", "main.py"]
